package com.sos.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sos.dto.OrderSearch;
import com.sos.entity.po.Order;
import com.sos.entity.po.OrderDetail;

import java.util.List;

/**
 * @author 港某人
 * @date 2021/3/20 13:25
 */
public interface OrderMapper extends BaseMapper<Object> {

    List<Order> getOrderByDoctorId(Page<Order> page, OrderSearch orderSearch);

    OrderDetail getOrderById(String objId);

    List<OrderDetail> getOrderDetailByDoctorId(Page<OrderDetail> page, OrderSearch orderSearch);

    void updateOrder(Order order);

    void updateOrderDetail(OrderDetail orderDetail);

}
